package test.testCases;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;

import test.core.HandlingError;
import test.core.TCStep;
import test.util.DBConnection;
import test.util.SuiteConfig;
import test.util.TestConfig;
import test.util.Util;

public class AS {
	private static DBConnection connection;
	private static TestConfig tc = TestConfig.getInstance();
	private static SuiteConfig sc = SuiteConfig.getInstance();
	public static HandlingError herr = HandlingError.getInstance();
	public static Util u = new Util();
	/**
	 * variable step contains step of testcase 
	 */
	private TCStep step;
	
	/**
	 * variable lastStepId is numerator of testcase's steps
	 */
	private Integer lastStep = 0;
	
	public TCStep getStep() {
    	return step;
    }
	
//	public static void main(String arg[]) throws Exception {
//		String SQL = "select user_name,user_psd " 
//			+ "from dbo.tbl_user " 
//			+ "where user_name = 'bryce.guo@gmail.com' ";
//		System.out.println(SQL);
//		//Connection.ExceSql(SQL);
//		ResultSet result = connection.rsSql(SQL);
//		ResultSetMetaData metaData = result.getMetaData(); 
//		int columnCount = metaData.getColumnCount();
//		while(result.next()) {
//			int i = 0;
//			//result.add(rset.getString(0));
//			for (int j = 0; j <= columnCount; j++)
//			{
//			System.out.println(result.getString(j));
//			}
//			i++;
//		}
//		connection.close();	
//		
//	}
	public static void main(String arg[]) throws Exception {
			String id = "001";
			String name = "aaa";
	    	TCStep step = new TCStep(id, name);
	    	
	    	System.out.print("STEP:" + id + ". (" + u.getTime(step.getTime()) + ")" + step.getName());
	    	
	    
	}
}
